/*
 * @Author: zhengzhuang
 * @Date: 2020-07-27 17:52:55
 * @LastEditors: zhengzhuang
 * @LastEditTime: 2020-07-27 17:58:53
 * @Description: 车辆信息model
 * @FilePath: /C20Driver_1.0.0/lib/model/vehicle_information_model.dart
 */
class VehicleInformationModel {
  String licensePlateNumber; // 车牌信息
  String brand = "填写当前车辆品牌车型"; // 车辆品牌车型
  String certifyDateA = '1990-01-01'; // 上牌时间
  String vehicleColor = '白色'; // 车身颜色
  String address; // 城市
  String vin; // 车辆识别码
  String engineid; // 发动机号
  String distance; // 行驶里程

  VehicleInformationModel(
      {this.licensePlateNumber,
      this.brand,
      this.certifyDateA,
      this.vehicleColor,
      this.address,
      this.vin,
      this.engineid,
      this.distance});

  VehicleInformationModel.fromJson(Map<String, dynamic> json) {
    licensePlateNumber = json['license_plate_number'];
    brand = json['brand'];
    certifyDateA = json['certify_date_a'];
    vehicleColor = json['vehicle_color'];
    address = json['address'];
    vin = json['vin'];
    engineid = json['engineid'];
    distance = json['distance'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['license_plate_number'] = this.licensePlateNumber;
    data['brand'] = this.brand;
    data['certify_date_a'] = this.certifyDateA;
    data['vehicle_color'] = this.vehicleColor;
    data['address'] = this.address;
    data['vin'] = this.vin;
    data['engineid'] = this.engineid;
    data['distance'] = this.distance;
    return data;
  }
}
